package com.demo.biz.impl;

import javax.management.RuntimeErrorException;

import com.demo.biz.UserBiz;
import com.demo.entity.User;

public class UserBizImpl implements UserBiz {

	public void save(User user) {
		if(user !=null){
			System.out.println("保存成功");
		}else {
			throw new RuntimeException("用户名不能为空");
		}

	}

	public String quey() {
		System.out.println("查询成功");
		return "success";
	}

}
